﻿namespace Core.MemCache
{
    public class Element<T> : IElement
    {
        private T value;

        public int Count => 1;

        public T Get() => value;

        public void Set(T value) => this.value = value;

        public void Dispose()
        {
            value = default;
        }
    }
}
